package kr.hkit.powerjava.chapter11;

class Employee{
	public String name;
	String address;
	protected int salary;
	public int BRN;
	
	@Override
	public String toString() {
		return "Employee [name=" + name + ", address=" + address + ", salary="
				+ salary + ", BRN=" + BRN + "]";
	}
}
class Manager extends Employee{
	private int bonus;
	
	public void printSalary(){
		System.out.println(name + "("+address+") : "+(salary+bonus));
	}
	public void printBRN(){
		System.out.println(BRN);
	}
	
	
}
	
public class ManagerTest {	
	public static void main(String[] args) {
		Manager m = new Manager();
		
		m.printBRN();
	}
}
